//医院设置相关js
import request from "../utils/request";

//前置路径
const base = '/admin/hosp/hospitalSet/'

//获取列表信息
export const getPageListApi = (current, limit, searchObj) => request.post(
  `${base}findPageHospSet/${current}/${limit}`, searchObj
)

//根据id删除医院设置
export const removeDataByIdApi = (id) => request.delete(`${base}${id}`)

//批量删除
export const removeRowsApi = (idList) => request({
  url: `${base}batchRemove`,
  method: 'delete',
  data: idList
})

//锁定和取消锁定
export const lockHospSetApi = (id, status) => request.put(`${base}lockHospitalSet/${id}/${status}`)

//新增医院设置
export const saveHospSetApi = (info) => request.post(`${base}saveHospitalSet`, info)

//修改医院设置
export const updateHospSetApi = (info) => request({
  url: `${base}updateHospitalSet`,
  method: 'post',
  data: info
})


